package com.meteor.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import com.meteor.framework.common.utils.DateUtils;
import com.meteor.framework.common.utils.TreeNode;
import com.meteor.user.entity.SysOrg;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 商户列表
 *
 * @author lynn
 * @date 2024/1/03
 */
@Data
@Schema(description = "商户")
public class SysMerchantVO implements Serializable, TransPojo {


    private String id;

    @Schema(description = "商户名称", required = true)
    @NotBlank(message = "商户名称不能为空")
    private String name;

    @Schema(description = "商户编号", required = true)
    @NotBlank(message = "商户编号不能为空")
    private String merchantCode;

    @Schema(description = "商户地址", required = true)
    private String address;

    @Schema(description = "商户联系人")
    private String contact;

    @Schema(description = "商户联系电话")
    private String phone;

    @Schema(description = "组织id")
    @Trans(type = TransType.SIMPLE, target = SysOrg.class, fields = "name", ref = "orgName")
    private String orgId;

    @Schema(description = "组织名称")
    private String orgName;


}